import React from 'react';
import { Modal, Row, Col, Form, Input, Button, Radio } from 'antd';
//getGroupName;
import { commonApi } from '@/network/api';
const { WorkSpaceName } = commonApi;
export default class extends React.Component {
  state = {
    name: '',
  };
  componentDidMount() {
    console.log(this.props);
    const { workspaceId } = JSON.parse(this.props.nameId);

    WorkSpaceName({ id: workspaceId }).then(res => {
      if (res.success) {
        console.log(res);
        const { name } = res.data;
        this.setState({
          name,
        });
      }
    });
  }

  render() {
    const { name } = this.state;
    return <div>{name}</div>;
  }
}
